
#include "student.h"
#include<istream>
#include<string>
#include<iostream>
using namespace std;

void myprint(std::string str)
{
    // 设置空格
    for (int i = 0; i < 26; i++)
    {
        std::cout << " ";
    }
    std::cout << str;
}

std::ostream& operator<<(std::ostream& os, const Centered& centered)
{
    std::string text;
    std::getline(std::cin, text);  // 从流中读取文本
    int padding = (centered.width - text.length()) / 2;
    if (padding < 0) padding = 0;
    os << std::string(padding, ' ') << text;
    return os;
}


